text: Fix disabling of history
authorMatthias Clasen <mclasen@redhat.com>
Tue, 28 Feb 2023 00:17:08 +0000 (19:17 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 28 Feb 2023 00:17:08 +0000 (19:17 -0500)
commit61e4eadbce4e1c56a831fee378e49a45f1f92782
tree83a7107fcc8f9bb9874d43539d07e710d9a3142a
parent0db2d0bc072fc2b30cbbf4bb2cbdd8ada41b2673
text: Fix disabling of history

Keep a separate boolean for enable-undo, and
disable the history if it is false, or the entry
is not using visible text, or isn't editable.

Related to: #5622
gtk/gtktext.c